const zlib= require('zlib')
const fs= require('fs');
const { log } = require('console');
// const readSStream = fs.createReadStream('test.txt')
// const writeStream = fs.createWriteStream('test.txt.gz')
// readSStream.pipe(zlib.createGzip()).pipe(writeStream)


// const readSStream = fs.createReadStream('test.txt.gz')
// const writeStream = fs.createWriteStream('test2.txt')
// readSStream.pipe(zlib.createGunzip()).pipe(writeStream)

// const a = '我要下班，快下班\n';
// console.log(a.repeat(1000));